//导入相关包
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
//定义路由数组
const routes=[
    {
        path:'/subjectsList',
        component:()=>import('@/views/subjects/SubjectsList')
    },
    {
        path:'/subjectsAdd',
        component:()=>import('@/views/subjects/SubjectsAdd')
    }
]
//实例化vueRouter(路由器)
const router=new VueRouter({
    routes:routes
})
//到处router
export default router
